package com.jumi.microservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jumi.microservice.entity.JumiInvoice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;


@Mapper
public interface InvoiceMapper extends BaseMapper<JumiInvoice> {
    /**
     * 批量更新
     *
     * @param idStr
     * @return
     */
    @Update("update jumi_invoice set invoice_status = 5,is_revoke = 1 where id in ( ${idStr} ) ")
    int batchUpdata(@Param("idStr") String idStr);

}
